<!-- 商品参数组件 -->
<template>
  <div class="goods-params">
    <ul class="params">
      <li class="params-item" v-for="(item, index) in list" :key="index">
        <div class="item-key">{{ item.key }}</div>
        <div class="item-value">{{ item.value }}</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "",
  props: {
    list: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  data() {
    return {};
  },
  components: {}
};
</script>

<style scoped>
.goods-params {
  background: #fff;
}
.params {
  list-style: none;
  padding: 0 10px;
}
.params-item {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(144, 144, 144, 0.1);
}
.item-key {
  flex: 1;
}
.item-value {
  flex: 1;
  color: var(--color-high-text);
}
</style>
